﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using MINERP.DAL.Statistics;
namespace MINERP.BLL.Statistics
{
    public class ShopCrushAndArrearsBLL
    {
        ShopCrushAndArrearsDAL dal = new ShopCrushAndArrearsDAL();
        public DataSet GetShopCrushAndArrears(DateTime startTime, DateTime endTime)
        {
            DataSet ds = dal.GetShopCrushAndArrears(startTime, endTime);
            ds.WriteXml(@"C:\windows\xmlData\ShopCrushAndArrears.xml", XmlWriteMode.WriteSchema);
            return ds;
        }

        public DataSet GetSalesmanCrushAndArrears(DateTime startTime, DateTime endTime, string salesman)
        {
            DataSet ds = dal.GetSalesmanCrushAndArrears(startTime,endTime,salesman);
            ds.WriteXml(@"C:\windows\xmlData\SalesmanCrushAndArrears.xml", XmlWriteMode.WriteSchema);
            return ds;
        }
    }
}
